<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
</head>
<style>
    table{
        border: 1px solid black;
    }
</style>
<body>
<table th:border="1">
    <tr>
        <th>订单号</th>
        <th>商品</th>
        <th>商品价格</th>
        <th>购买人姓名</th>
        <th>购买人手机号</th>
        <th>购买人地址</th>
        <th>购买时间</th>
    </tr>
    <tr th:each="goodsBill : ${list}">
        <td th:text="${goodsBill.id}"></td>
        <td th:text="${goodsBill.goods.getGoodsName()}"></td>
        <td th:text="${goodsBill.goods.getPrice()}"></td>
        <td th:text="${goodsBill.userMessage.getUserName()}"></td>
        <td th:text="${goodsBill.userMessage.getUserNumber()}"></td>
        <td th:text="${goodsBill.userMessage.getAddress()}"></td>
        <td th:text="${#dates.format(goodsBill.purchaseTime,'yyyy-MM-dd HH:mm:ss')}"></td>
    </tr>
</table>
</body>
</html>